﻿@model SAIM.Models._GetViewModel

<div class="table-responsive">
    <table id="user-table" class="table table-bordered">
        <thead>
            <tr>
                <th>Gestionar</th>
                <th>UPN</th>
                <th>Nombre</th>
            </tr>
        </thead>


        @if (Model.users.Count() > 0)
        {
            <tbody>
                @foreach (SAIM.Models.AspNetUser user in Model.users)
                {
                    <tr>
                        <td>
                            <a href="@user.url" role="button" class="btn btn-primary">
                                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                            </a>
                        </td>
                        <td scope="row">@user.Id</td>
                        <td>@user.UserName</td>
                    </tr>
                }
            </tbody>
        }
        else
        {
            <tfoot>
                <tr>
                    <td colspan="3" class="danger">Ningún elemento encontrado</td>
                </tr>
            </tfoot>
        }
    </table>
</div>